package com.zhifei.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhifei.system.domain.DingUserArchivesEntity;
import com.zhifei.system.domain.DingUserEntity;
import com.zhifei.system.domain.vo.PersonProjectUserArchivesVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DingUserArchivesMapper extends BaseMapper<DingUserArchivesEntity> {

    List<DingUserEntity> listAllProjectUser(@Param("userStatus")Integer userStatus);

    List<PersonProjectUserArchivesVo> pageUserArchives(Page page, @Param("deptId")String deptId, @Param("userStatus")Integer userStatus,
                                                       @Param("monthStartDate")String monthStartDate, @Param("monthEndDate")String monthEndDate);

    List<DingUserArchivesEntity> listUserArchives(@Param("deptId")String deptId, @Param("userStatus")Integer userStatus,
                                                       @Param("monthStartDate")String monthStartDate, @Param("monthEndDate")String monthEndDate);

}
